package com.yiwei.zhh.api.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by xsooy-pc on 2017/5/24.
 */

public class AllTypeBean implements Parcelable {
        public int isVerify;
        public ArrayList<KeyValueBean> items;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.isVerify);
        dest.writeTypedList(this.items);
    }

    public AllTypeBean() {
    }

    protected AllTypeBean(Parcel in) {
        this.isVerify = in.readInt();
        this.items = in.createTypedArrayList(KeyValueBean.CREATOR);
    }

    public static final Parcelable.Creator<AllTypeBean> CREATOR = new Parcelable.Creator<AllTypeBean>() {
        @Override
        public AllTypeBean createFromParcel(Parcel source) {
            return new AllTypeBean(source);
        }

        @Override
        public AllTypeBean[] newArray(int size) {
            return new AllTypeBean[size];
        }
    };
}
